package com.neuedu.studentmanage.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Homework {

	private Integer taskId;
	private char type;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date startTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date endTime;

	private Teacher teacher;

	public Homework(Integer taskId) {
		super();
		this.taskId = taskId;
	}

	public Integer getTaskId() {
		return taskId;
	}

	public void setTaskId(Integer taskId) {
		this.taskId = taskId;
	}

	public char getType() {
		return type;
	}

	public void setType(char type) {
		this.type = type;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public Homework() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Homework(Integer taskId, char type, Date startTime, Date endTime, Teacher teacher) {
		super();
		this.taskId = taskId;
		this.type = type;
		this.startTime = startTime;
		this.endTime = endTime;
		this.teacher = teacher;
	}

	@Override
	public String toString() {
		return "Homework [taskId=" + taskId + ", type=" + type + ", startTime=" + startTime + ", endTime=" + endTime
				+ ", teacher=" + teacher + "]";
	}

}
